package com.hyb.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyb.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyb.page.VoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  产品Mapper 接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    IPage<Product> getProducts(Page page, @Param("voQuery") VoQuery voQuery);


    Set<Product> selectProductSeries(@Param("productType") String productType);

    List<Product> selectProductModels(@Param("productSeries") String productSeries);
}
